// 模拟果币充值记录
export type RechargeRecord = {
  id: number;
  username: string;
  storeName: string;
  phoneNumber: string;
  businessDocument: string;
  businessType: string;
  flowType: string;
  time: string;
  amount: number;
};
export const mockRechargeRecords: RechargeRecord[] = Array.from(
  { length: 30 },
  (_, index) => ({
    id: index + 1,
    username: `用户${index + 1}`,
    storeName: `店铺${Math.floor(Math.random() * 5) + 1}`,
    phoneNumber: `13${Math.floor(Math.random() * 1000000000)
      .toString()
      .padStart(9, "0")}`,
    businessDocument: `单据${index + 1}`,
    businessType: ["充值", "订单消费", "退款"][Math.floor(Math.random() * 3)],
    flowType: ["收入", "支出"][Math.floor(Math.random() * 2)],
    time: new Date().toISOString(),
    amount: Math.floor(Math.random() * 1000) + 1,
  })
);
// 模拟订单
export type Order = {
  id: number;
  status: "待付款" | "已完成" | "全部";
  orderNumber: string;
  // 其他订单相关字段
};
export const mockOrders: Order[] = Array.from({ length: 20 }, (_, index) => ({
  id: index + 1,
  status: ["待付款", "已完成", "全部"][Math.floor(Math.random() * 3)],
  orderNumber: `订单${index + 1}`,
}));
